React Typescript: How can I dynamically set a generic interface for a function

join shbcf.ru